import request from '@/utils/request'

// 用户列表
export function getUserList(params: any) {
    return request.get({ url: '/user.user/lists', params }, { ignoreCancelToken: true })
}
// 用户编辑
export function adjustMoney(params: any) {
    return request.post({ url: '/user.user/adjustMoney', params })
}

// 用户添加
export function userAdd(params: any) {
    return request.post({ url: '/user.user/add', params })
}

// 修改密码
export function changePwd(params: any) {
    return request.post({ url: '/user.user/changePwd', params })
}

// 重置支付密码
export function resetPayPwd(params: any) {
    return request.post({ url: '/user.user/resetPayPwd', params })
}

// 修改邮箱
export function changeEmail(params: any) {
    return request.post({ url: '/user.user/changeEmail', params })
}

// 重置邮箱验证
export function resetEmail(params: any) {
    return request.post({ url: '/user.user/resetEmail', params })
}

// 重置谷歌验证
export function resetGoogle(params: any) {
    return request.post({ url: '/user.user/resetGoogle', params })
}

// 自动升级状态
export function updateMemberStatus(params: any) {
    return request.post({ url: '/user.user/updateMemberStatus', params })
}

// 开启量化状态
export function updateLhStatus(params: any) {
    return request.post({ url: '/user.user/updateLhStatus', params })
}

// 开启转账状态
export function updateTransferStatus(params: any) {
    return request.post({ url: '/user.user/updateTransferStatus', params })
}

// 启用状态
export function updateOpenStatus(params: any) {
    return request.post({ url: '/user.user/updateOpenStatus', params })
}

// 代理状态
export function updateAgentStatus(params: any) {
    return request.post({ url: '/user.user/updateAgentStatus', params })
}

// 代理名称
export function changeAgentName(params: any) {
	return request.post({ url: '/user.user/changeAgentName', params })
}

// 启用邀请码
export function updateSnStatus(params: any) {
    return request.post({ url: '/user.user/updateSnStatus', params })
}

// 发送消息
export function sendNotice(params: any) {
    return request.post({ url: '/user.user/sendNotice', params })
}

// 彩金赠送
export function caijin(params: any) {
    return request.post({ url: '/user.user/caijin', params })
}

// 备注
export function remark(params: any) {
    return request.post({ url: '/user.user/remark', params })
}
